import Vue from 'vue'
import { Tabbar, TabbarItem, NavBar, Search, Icon, Overlay, Popup, Card, Button, Tab, Tabs, Image, Sticky, Row, Col, Tag, Lazyload, Toast, Panel, Grid, GridItem, IndexBar, IndexAnchor, Cell, Uploader } from 'vant'

Vue.use(Tab).use(Tabs)
  .use(Button)
  .use(Card)
  .use(Overlay)

const options = {
  lazyComponent: true,
  loading: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1573016971994&di=2b99697cd91d2d462fed773c32207828&imgtype=0&src=http%3A%2F%2Fimg.zcool.cn%2Fcommunity%2F01a851599d4688a801201794912bf9.gif'
}

Vue.use(Sticky)
  .use(Card)
  .use(Image)
  .use(Icon)
  .use(Search)
  .use(NavBar)
  .use(Tabbar)
  .use(TabbarItem)
  .use(Row).use(Col)
  .use(Tag)
  .use(Button)
  .use(Lazyload, {
    lazyComponent: true
  })
  .use(Tab).use(Tabs)
  .use(Lazyload, options)
  .use(Panel)
  .use(Grid)
  .use(GridItem)
  .use(Popup)
  .use(IndexBar)
  .use(IndexAnchor)
  .use(Cell)
  .use(Toast)
  .use(Uploader)
